package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.example.dto.MenuDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MenuMapper extends BaseMapper<MenuDto> {
//    根据角色id查询菜单信息
    public List<MenuDto> selectMenuByRole(@Param("roleList")  List<Integer> roleList);
//    根据角色查询能个看到的菜单id
    public List<Integer> selectMenuId(@Param("roleList")List<Integer> roleList);

}
